<?php
$keywords = (get_input('keywords'));
$user_id = get_loggedin_userid();
$friends = suggest_users_by_keywords($keywords, $user_id);
if (!$friends) {
    $friends = array();
}

//add random friends as suggestion
$random = get_random_fb_users();
if ($random) {
    $random->facebook_id = "?????????";
    $friends[] = $random;
}

echo json_encode(export_result(200, $friends));
